package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

/**
 * 小赢速贷
 */
public class XiaoYingSuDaiUtil {




    //职业身份
    public static Integer getJob(String jbo) {
        if (StrUtil.equals(jbo, BaseTypeInfoEnum.Gongzuo.gz002.getValue())) {
            return 1;
        }
        return 0;
    }



    //学历
    public static Integer getXueli(String xueli) {
        if (StrUtil.equals(xueli, BaseTypeInfoEnum.XueLi.xl002.getValue())) {
            return 1;
        } else if (StrUtil.equals(xueli, BaseTypeInfoEnum.XueLi.xl003.getValue())) {
            return 3;
        } else if (StrUtil.equals(xueli, BaseTypeInfoEnum.XueLi.xl004.getValue())) {
            return 4;
        } else if (StrUtil.equals(xueli, BaseTypeInfoEnum.XueLi.xl005.getValue())) {
            return 5;
        }
        return 0;
    }

    //芝麻
    public static Integer getZhima(String zhima) {
        if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm002.getValue())) {
            return 1;
        } else if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm003.getValue())) {
            return 2;
        } else if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm004.getValue())) {
            return 3;
        } else if (StrUtil.equals(zhima, BaseTypeInfoEnum.Zhima.zm005.getValue())) {
            return 4;
        }
        return 1;
    }

    //逾期
    public static Integer getYuqi(String yuqi) {
        if (StrUtil.equals(yuqi, BaseTypeInfoEnum.Yuqi.yq001.getValue())) {
            return 0;
        }
        return 1;
    }

    //保险
    public static Integer getBaoxian(String baoxian) {
        if (StrUtil.equals(baoxian, BaseTypeInfoEnum.Baoxian.bx001.getValue())) {
            return 0;
        }
        return 1;
    }

    //房产
    public static Integer getHouse(String house) {
        if (StrUtil.equals(house, BaseTypeInfoEnum.House.hu001.getValue())) {
            return 0;
        }
        return 1;
    }
    //车产
    public static Integer getCar(String car) {
        if (StrUtil.equals(car, BaseTypeInfoEnum.Car.car001.getValue())) {
            return  0;
        }
        return 1;
    }
    //社保
    public static Integer getshebao(String shebao) {
        if (StrUtil.equals(shebao, BaseTypeInfoEnum.Shebao.sb001.getValue())) {
            return 0;
        }
        return 1;
    }
    //公积金
    public static Integer getGjj(String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj001.getValue())) {
            return 0;
        }
        return 1;
    }





}
